<?php
if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME'])) {exit('No Direct Access!');}
/*
---------------------------------------------------------------------------
| Easyrest main configuration file.
---------------------------------------------------------------------------

---------------------------------------------------------------------------
| Error reporting.
--------------------------------------------------------------------------- */
error_reporting(E_ALL); 
ini_set("display_errors", 1);

/*
---------------------------------------------------------------------------
| PEAR 
---------------------------------------------------------------------------
| If you increase speed of easyrest application
| set pear TRUE and install all latest version of required pear packages.
| If you don't want to install pear libraries
| Easyrest can work with pear packages from easyrest pear folder. 
|
| Required PEAR Packages:
| Crypt
| Crypt/Blowfish
| HTTP
| HTTP/Request (v 1.63 recommended)
| Net
| Net/Net_Socket
| Net/Net_URL
| XML
| XML/XML_Parser
| XML/XML_Serializer
| XML/XML_Unserializer
| XML/XML_Util
| 
---------------------------------------------------------------------------
| Pear config: if you sure all required packages installed set it TRUE.
--------------------------------------------------------------------------- */  
$config['common']['pear'] = FALSE;

 /*
---------------------------------------------------------------------------
| Iv blowfish: initialization vector id
---------------------------------------------------------------------------
| WARNING! Server config.php and Client config.php iv value MUST BE SAME!!!
| 
| Set your apikey encryption wide.
| If you want strong encryption enter more different characters.
| BECAREFULL client and server config file iv value must be same !!!
| 
---------------------------------------------------------------------------
| Enter a mixed value (MAX [8] and MIN [8] characters.)
--------------------------------------------------------------------------- */
$config['common']['iv'] = "zx#6}4&%";

/*
---------------------------------------------------------------------------
| XML Serializer Configuration 
---------------------------------------------------------------------------
| Server script use xml_serializer for building xml response file.
| Sometime you will need to change xml serializer configuration.
|
---------------------------------------------------------------------------
| Linebreaks character for xml content writing.
--------------------------------------------------------------------------- */
$config['xml_serializer']['linebreaks']       = "\n";

/*
---------------------------------------------------------------------------
| Xml content encoding.
--------------------------------------------------------------------------- */
$config['xml_serializer']['xml_encoding']     = 'UTF-8';

/*
---------------------------------------------------------------------------
| Html allow or not in xml content. 
--------------------------------------------------------------------------- */
$config['xml_serializer']['cdata']            = FALSE;

/*
---------------------------------------------------------------------------
| if value true it will show tag attributes like <city_id _type="string">
| for every tags.
--------------------------------------------------------------------------- */
$config['xml_serializer']['type_hints']       = FALSE;

/*
---------------------------------------------------------------------------
| If serializer find an empty array it will change tagname with 
| default_tag name after that it will go serialize.
| You can change it.Use letters. 
--------------------------------------------------------------------------- */
$config['xml_serializer']['default_tag']      = 'Easyrest_Default_Tag'; 

  
?>
